package com.hcy.ordermodel.dto.request;

import com.hcy.rabbitbasicmodel.signl.Finish;
import com.hcy.rabbitbasicmodel.signl.Update;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * @Author huchenying
 * @Description
 * @Date 2021/12/23 15:15
 */
@Data
public class UpdateOrderRequestDTO implements Serializable {

    private static final long serialVersionUID = 1L;
    @NotNull(groups = {Update.class, Finish.class})
    private String OrderNumber;
    @NotNull(groups = {Update.class})
    private Integer status;

    /**
     * 订单开始时间
     */
    private Date orderStartTime;

    /**
     * 去接乘客地点
     */
    private String pickUpPassengerAddress;
    /**
     * 去接乘客经纬度
     */
    private String pickUpPassengerLongitude;
    /**
     * 去接乘客经纬度
     */
    private String pickUpPassengerLatitude;
    /**
     * 去接乘客出发时间
     */
    private Date driverStartTime;

    /**
     * 司机到达时间
     */
    private Date driverArrivedTime;

    /**
     * 接到乘客时间
     */
    private Date receivePassengerTime;

    /**
     * 接到乘客经度
     */
    private String receivePassengerLongitude;

    /**
     * 接到乘客纬度
     */
    private String receivePassengerLatitude;

    /**
     * 乘客下车经纬度
     */
    @NotNull(groups = {Finish.class})
    private String passengerGetoffLatitude;

    /**
     * 乘客下车经纬度
     */
    @NotNull(groups = {Finish.class})
    private String passengerGetoffLongitude;
}
